Put each object with same name into single dictionary python